package java51_19;

import java.util.Scanner;

public class ScannTest {

	public static void main(String[] args) {
		// Scanner sc = new Scanner("124 576");
		// int a = sc.nextInt();
		// int b = sc.nextInt();
		// System.out.println("a=" + a);
		// System.out.println("b=" + b);
		Scanner sc = new Scanner(System.in);
		// 是否是特定的类型
		// if (!sc.hasNextInt()) {
		// System.out.println("您输入的不是数字");
		// } else {
		// int c = sc.nextInt();
		// System.out.println(c);
		// }
		// next nextLine的区别
		System.out.println("input something:");
		String str = sc.nextLine();
		System.out.println("输入了" + str);
		System.out.println("len:" + str.length());
	}

}
